.class public Lcom/netease/newsreader/activity/AccountSettingActivity;
.super Lcom/netease/newsreader/activity/BaseActivity;
.source "AccountSettingActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;
    }
.end annotation


# instance fields
.field private account:Ljava/lang/String;

.field private accountListData:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Ljava/util/HashMap",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/Object;",
            ">;>;"
        }
    .end annotation
.end field

.field private account_list:Landroid/widget/ListView;

.field private account_signin:Landroid/widget/Button;

.field private account_signout:Landroid/widget/Button;

.field private account_signup:Landroid/widget/Button;

.field private account_text:Landroid/widget/TextView;

.field private adapter:Landroid/widget/SimpleAdapter;

.field private bindAccountListener:Landroid/view/View$OnClickListener;

.field private foottextview:Landroid/widget/TextView;

.field private netease_img:Landroid/widget/ImageView;

.field private progressDialog:Landroid/app/ProgressDialog;

.field private set_prefs:Landroid/content/SharedPreferences;

.field private signinListener:Landroid/view/View$OnClickListener;

.field private signoutListener:Landroid/view/View$OnClickListener;

.field private signupListener:Landroid/view/View$OnClickListener;

.field private title:Landroid/widget/TextView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 33
    invoke-direct {p0}, Lcom/netease/newsreader/activity/BaseActivity;-><init>()V

    .line 50
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    .line 141
    new-instance v0, Lcom/netease/newsreader/activity/AccountSettingActivity$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/AccountSettingActivity$1;-><init>(Lcom/netease/newsreader/activity/AccountSettingActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->signinListener:Landroid/view/View$OnClickListener;

    .line 154
    new-instance v0, Lcom/netease/newsreader/activity/AccountSettingActivity$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/AccountSettingActivity$2;-><init>(Lcom/netease/newsreader/activity/AccountSettingActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->signupListener:Landroid/view/View$OnClickListener;

    .line 169
    new-instance v0, Lcom/netease/newsreader/activity/AccountSettingActivity$3;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/AccountSettingActivity$3;-><init>(Lcom/netease/newsreader/activity/AccountSettingActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->signoutListener:Landroid/view/View$OnClickListener;

    .line 185
    new-instance v0, Lcom/netease/newsreader/activity/AccountSettingActivity$4;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/activity/AccountSettingActivity$4;-><init>(Lcom/netease/newsreader/activity/AccountSettingActivity;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->bindAccountListener:Landroid/view/View$OnClickListener;

    .line 33
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/activity/AccountSettingActivity;)Landroid/content/SharedPreferences;
    .locals 1
    .parameter

    .prologue
    .line 39
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->set_prefs:Landroid/content/SharedPreferences;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/activity/AccountSettingActivity;)Landroid/widget/TextView;
    .locals 1
    .parameter

    .prologue
    .line 38
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_text:Landroid/widget/TextView;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/activity/AccountSettingActivity;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 36
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$3(Lcom/netease/newsreader/activity/AccountSettingActivity;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 37
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$4(Lcom/netease/newsreader/activity/AccountSettingActivity;)Landroid/widget/Button;
    .locals 1
    .parameter

    .prologue
    .line 35
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    return-object v0
.end method

.method static synthetic access$5(Lcom/netease/newsreader/activity/AccountSettingActivity;)Landroid/view/View$OnClickListener;
    .locals 1
    .parameter

    .prologue
    .line 185
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->bindAccountListener:Landroid/view/View$OnClickListener;

    return-object v0
.end method


# virtual methods
.method public goBackClick(Landroid/view/View;)V
    .locals 0
    .parameter "view"

    .prologue
    .line 447
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->finish()V

    .line 448
    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 3
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    .line 320
    invoke-super {p0, p1, p2, p3}, Lcom/netease/newsreader/activity/BaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    .line 321
    const-string v0, "newsreader"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "Account onActivityResult,requestCode:"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ",resultCode:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/netease/newsreader/util/Logger;->i(Ljava/lang/String;Ljava/lang/String;)V

    .line 322
    if-nez p1, :cond_1

    const/4 v0, -0x1

    if-ne p2, v0, :cond_1

    .line 325
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    .line 326
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-static {v0}, Lcom/netease/newsreader/util/Tools;->ChangeList(Ljava/util/ArrayList;)V

    .line 327
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->adapter:Landroid/widget/SimpleAdapter;

    new-instance v1, Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;-><init>(Lcom/netease/newsreader/activity/AccountSettingActivity;Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;)V

    invoke-virtual {v0, v1}, Landroid/widget/SimpleAdapter;->setViewBinder(Landroid/widget/SimpleAdapter$ViewBinder;)V

    .line 329
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->adapter:Landroid/widget/SimpleAdapter;

    if-eqz v0, :cond_1

    .line 330
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->adapter:Landroid/widget/SimpleAdapter;

    invoke-virtual {v0}, Landroid/widget/SimpleAdapter;->notifyDataSetChanged()V

    .line 333
    :cond_1
    return-void
.end method

.method public onApplyTheme()V
    .locals 8

    .prologue
    const v7, 0x7f0c000d

    const v6, 0x7f0c000c

    const v5, 0x7f080025

    const v4, 0x7f020088

    const v3, 0x7f080027

    .line 459
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onApplyTheme()V

    .line 460
    invoke-virtual {p0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->getThemeSettingsHelper()Lcom/netease/newsreader/util/ThemeSettingsHelper;

    move-result-object v0

    .line 461
    .local v0, themeSettingsHelper:Lcom/netease/newsreader/util/ThemeSettingsHelper;
    const v1, 0x7f0c0008

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 462
    const v1, 0x7f0c0007

    const v2, 0x7f0200fe

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 463
    const v1, 0x7f0c0006

    const v2, 0x7f080029

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroudColor(Landroid/app/Activity;II)V

    .line 464
    invoke-virtual {v0, p0, v6, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 465
    invoke-virtual {v0, p0, v6, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 466
    invoke-virtual {v0, p0, v7, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 467
    invoke-virtual {v0, p0, v7, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 468
    const v1, 0x7f0c000e

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 469
    const v1, 0x7f0c000e

    invoke-virtual {v0, p0, v1, v4}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setViewBackgroud(Landroid/app/Activity;II)V

    .line 470
    const v1, 0x7f0c0011

    const v2, 0x7f020070

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setListViewDivider(Landroid/app/Activity;II)V

    .line 471
    const v1, 0x7f0c0009

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 472
    const v1, 0x7f0c0010

    invoke-virtual {v0, p0, v1, v5}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 473
    const v1, 0x7f0c000b

    invoke-virtual {v0, p0, v1, v3}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setTextViewColor(Landroid/app/Activity;II)V

    .line 475
    const v1, 0x7f0c0002

    const v2, 0x7f020041

    invoke-virtual {v0, p0, v1, v2}, Lcom/netease/newsreader/util/ThemeSettingsHelper;->setImageViewSrc(Landroid/app/Activity;II)V

    .line 476
    return-void
.end method

.method public onCreate(Landroid/os/Bundle;)V
    .locals 11
    .parameter "savedInstanceState"

    .prologue
    const/4 v10, 0x3

    const/4 v9, 0x1

    const/16 v3, 0x8

    const/4 v8, 0x5

    const/4 v5, 0x0

    .line 55
    invoke-super {p0, p1}, Lcom/netease/newsreader/activity/BaseActivity;->onCreate(Landroid/os/Bundle;)V

    .line 56
    invoke-virtual {p0, v9}, Lcom/netease/newsreader/activity/AccountSettingActivity;->requestWindowFeature(I)Z

    .line 57
    const v0, 0x7f030001

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->setContentView(I)V

    .line 58
    invoke-static {p0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->set_prefs:Landroid/content/SharedPreferences;

    .line 59
    const v0, 0x7f0c000b

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_text:Landroid/widget/TextView;

    .line 60
    const v0, 0x7f0c000c

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    .line 61
    const v0, 0x7f0c000e

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    .line 62
    const v0, 0x7f0c000d

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    .line 63
    const v0, 0x7f0c0008

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->title:Landroid/widget/TextView;

    .line 64
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->title:Landroid/widget/TextView;

    invoke-virtual {p0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b0066

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 66
    const v0, 0x7f0c000a

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->netease_img:Landroid/widget/ImageView;

    .line 67
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->netease_img:Landroid/widget/ImageView;

    const v1, 0x7f020001

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 69
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->set_prefs:Landroid/content/SharedPreferences;

    const-string v1, "account"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account:Ljava/lang/String;

    .line 71
    const-string v0, ""

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 72
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_text:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 73
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 74
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 75
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 82
    :goto_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->signoutListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 83
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->signinListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 84
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->signupListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 86
    const v0, 0x7f0c0011

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/activity/AccountSettingActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_list:Landroid/widget/ListView;

    .line 87
    new-instance v7, Ljava/util/HashMap;

    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V

    .line 89
    .local v7, map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v0, "profile"

    const v1, 0x7f020085

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 90
    const-string v0, "accountType"

    const-string v1, "\u7f51\u6613\u5fae\u535a"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 91
    const-string v0, "bindAccount"

    const-string v1, "netease"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 92
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 94
    new-instance v7, Ljava/util/HashMap;

    .end local v7           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V

    .line 95
    .restart local v7       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v0, "profile"

    const v1, 0x7f0200ea

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 96
    const-string v0, "accountType"

    const-string v1, "\u65b0\u6d6a\u5fae\u535a"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 97
    const-string v0, "bindAccount"

    const-string v1, "sina"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 98
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 100
    new-instance v7, Ljava/util/HashMap;

    .end local v7           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V

    .line 101
    .restart local v7       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v0, "profile"

    const v1, 0x7f0200da

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 102
    const-string v0, "accountType"

    const-string v1, "\u817e\u8baf\u5fae\u535a"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 103
    const-string v0, "bindAccount"

    const-string v1, "qq"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 104
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 106
    new-instance v7, Ljava/util/HashMap;

    .end local v7           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V

    .line 107
    .restart local v7       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v0, "profile"

    const v1, 0x7f0200dd

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 108
    const-string v0, "accountType"

    const-string v1, "\u4eba\u4eba\u7f51"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 109
    const-string v0, "bindAccount"

    const-string v1, "renren"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 110
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 112
    new-instance v7, Ljava/util/HashMap;

    .end local v7           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    invoke-direct {v7}, Ljava/util/HashMap;-><init>()V

    .line 113
    .restart local v7       #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    const-string v0, "profile"

    const v1, 0x7f020128

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 114
    const-string v0, "accountType"

    const-string v1, "\u6709\u9053\u4e91\u7b14\u8bb0"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 115
    const-string v0, "bindAccount"

    const-string v1, "ydnote"

    invoke-virtual {v7, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 116
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    invoke-virtual {v0, v7}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 118
    new-instance v0, Landroid/widget/SimpleAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->accountListData:Ljava/util/ArrayList;

    .line 119
    const v3, 0x7f030002

    .line 120
    new-array v4, v10, [Ljava/lang/String;

    const-string v1, "profile"

    aput-object v1, v4, v5

    const-string v1, "accountType"

    aput-object v1, v4, v9

    const/4 v1, 0x2

    const-string v5, "bindAccount"

    aput-object v5, v4, v1

    .line 121
    new-array v5, v10, [I

    fill-array-data v5, :array_0

    move-object v1, p0

    invoke-direct/range {v0 .. v5}, Landroid/widget/SimpleAdapter;-><init>(Landroid/content/Context;Ljava/util/List;I[Ljava/lang/String;[I)V

    .line 118
    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->adapter:Landroid/widget/SimpleAdapter;

    .line 122
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->adapter:Landroid/widget/SimpleAdapter;

    new-instance v1, Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;-><init>(Lcom/netease/newsreader/activity/AccountSettingActivity;Lcom/netease/newsreader/activity/AccountSettingActivity$ButtonItem;)V

    invoke-virtual {v0, v1}, Landroid/widget/SimpleAdapter;->setViewBinder(Landroid/widget/SimpleAdapter$ViewBinder;)V

    .line 124
    new-instance v6, Landroid/widget/LinearLayout;

    invoke-direct {v6, p0}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 125
    .local v6, footview:Landroid/widget/LinearLayout;
    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, p0}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->foottextview:Landroid/widget/TextView;

    .line 126
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->foottextview:Landroid/widget/TextView;

    const/16 v1, 0xf

    invoke-virtual {v0, v1, v8, v8, v8}, Landroid/widget/TextView;->setPadding(IIII)V

    .line 127
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->foottextview:Landroid/widget/TextView;

    const v1, 0x7f0b0094

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 128
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->foottextview:Landroid/widget/TextView;

    const v1, -0x717172

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    .line 129
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->foottextview:Landroid/widget/TextView;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    const/4 v3, -0x2

    invoke-direct {v1, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v6, v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 130
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_list:Landroid/widget/ListView;

    invoke-virtual {v0, v6}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 131
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_list:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->adapter:Landroid/widget/SimpleAdapter;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 135
    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p0}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->progressDialog:Landroid/app/ProgressDialog;

    .line 136
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->progressDialog:Landroid/app/ProgressDialog;

    const-string v1, "\u6b63\u5728\u5904\u7406\u5fae\u535a\u7ed1\u5b9a\u5e10\u53f7"

    invoke-virtual {v0, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    .line 138
    return-void

    .line 77
    .end local v6           #footview:Landroid/widget/LinearLayout;
    .end local v7           #map:Ljava/util/HashMap;,"Ljava/util/HashMap<Ljava/lang/String;Ljava/lang/Object;>;"
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 78
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    invoke-virtual {v0, v5}, Landroid/widget/Button;->setVisibility(I)V

    .line 79
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    goto/16 :goto_0

    .line 121
    nop

    :array_0
    .array-data 0x4
        0x12t 0x0t 0xct 0x7ft
        0x13t 0x0t 0xct 0x7ft
        0x14t 0x0t 0xct 0x7ft
    .end array-data
.end method

.method protected onResume()V
    .locals 5

    .prologue
    const/16 v4, 0x8

    const/4 v3, 0x0

    .line 340
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->set_prefs:Landroid/content/SharedPreferences;

    const-string v1, "account"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account:Ljava/lang/String;

    .line 341
    const-string v0, ""

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 342
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_text:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 343
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    .line 344
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    .line 345
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 352
    :goto_0
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onResume()V

    .line 353
    return-void

    .line 347
    :cond_0
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signin:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 348
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signup:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 349
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->account_signout:Landroid/widget/Button;

    invoke-virtual {v0, v4}, Landroid/widget/Button;->setVisibility(I)V

    goto :goto_0
.end method

.method protected onStop()V
    .locals 1

    .prologue
    .line 453
    invoke-super {p0}, Lcom/netease/newsreader/activity/BaseActivity;->onStop()V

    .line 454
    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->progressDialog:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->progressDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/activity/AccountSettingActivity;->progressDialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    .line 455
    :cond_0
    return-void
.end method
